package org.example.ioc;

import org.example.ioc.controller.UserController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: MyConfiguration
 * Package: org.example.ioc
 * Description: 这是一个配置类，他的角色就是用来替换applicationContext.xml的
 *
 * @Author wanghao
 * @Create 2024-07-07 16:57
 * @Version 1.0
 */
@Configuration
@ComponentScan(basePackages = "org.example.ioc")
public class MyConfiguration {

    /*@Bean
    public UserController getUserController() {
        return new UserController();
    }*/


}
